/**
* Copyright (C), 2015-2023, 3jc.com. Co., Ltd.
* File name:main.go
* Author:东边的菜 Version:1.0 Date:20230110
* Description:
* Others:
 */

package main

import (
	"3jc.com/gin-vue-admin/common"
	"github.com/gin-gonic/gin"
)

func main() {
	//初始化
	db := common.GetDB()

	//延时关闭
	sqlDB, _ := db.DB()
	defer sqlDB.Close()

	r := gin.Default()
	r = CollectRoute(r)
	r.Run() // 监听并在 0.0.0.0:8080 上启动服务
}
